package com.njworkorder.DTO;


import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@AllArgsConstructor
@NoArgsConstructor
@Data
public class AOAddDto {

    @Schema(description = "行政组织编码")
    @JsonProperty("oCode")
    private String oCode;

    @Schema(description = "名称",requiredMode = Schema.RequiredMode.REQUIRED)
    private String name;

    @Schema(description = "类型", example = "o为单位，vo为虚拟组织，ou为部门")
    private String type;

    @Schema(description = "排序")
    private Integer sequence;

    @Schema(description = "上级组织主键")
    private String parentId;

    @Schema(description = "简称")
    private String shortNameExt;

    @Schema(description = "数据状态", example = "2为正常状态,6为冻结状态,8为失效状态")
    private String status;
}
